 <link rel="stylesheet" href="<?=base_url();?>css/calendar/jquery.ui.all.css">
	<script src="<?=base_url();?>java_scripts/calendar/jquery-1.5.1.js"></script>
	<script src="<?=base_url();?>java_scripts/calendar/jquery.ui.core.js"></script>
	<script src="<?=base_url();?>java_scripts/calendar/jquery.ui.widget.js"></script>
	<script src="<?=base_url();?>java_scripts/calendar/jquery.ui.datepicker.js"></script>
	<link rel="stylesheet" href="<?=base_url();?>css/calendar/demos.css">
 <script language="javascript">
	function goback(){
		document.forms[0].action='<?=site_url("job_management/goto_announce_view")?>';
		document.forms[0].submit();
	}
	function saveaddnew(){
		document.forms[0].action='<?=site_url("job_management/save_addnew_announ")?>';
		document.forms[0].submit();
	}
	$(function() {
		$( "#datepost" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
	});
	$(function() {
		$( "#dateclose" ).datepicker({
			changeMonth: true,
			changeYear: true
		});
	});
</script>

	<h3 class="capture">Job Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Add New Announcement</div>
        <div class="dd_view">
        <form action="" method="post">
   			<table width="420" border="0" align="center" cellpadding="0" cellspacing="0" id="addUser">
              <tr>
                <td width="100">&nbsp;</td>
                <td width="233">&nbsp;</td>
                <td width="87">&nbsp;</td>
              </tr>
              <tr>
                <td align="right">Company:</td>
                <td><div class="bordrTextbox">
                      <select id="cbocompany" name="cbocompany">
                      <?php foreach($all_company->result() as $company): 
					  	if($cbocompany==$company->com_id){
							$selectcbo="selected=/'selected/'";
						}else{
							 $selectcbo="";
						}
					  ?>
                      <option value="<?=$company->com_id;?>" <?=$selectcbo;?> ><?=$company->com_name;?></option>
                      <?php endforeach; ?>
                      </select>
                	</div>
                </td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>Date Post:</td>
                <td><div class="bordrTextbox"><input type="text" id="datepost" name="datepost" value="<?=htmlspecialchars($datepost);?>" readonly="readonly" /></div></td>
                <td><font color="#FF0000">*</font></td>
              </tr>
              <tr>
                <td>Date Close:</td>
                <td><div class="bordrTextbox"><input type="text" id="dateclose" name="dateclose" value="<?=htmlspecialchars($dateclose);?>" readonly="readonly" /></div></td>
                <td><font color="#FF0000">*</font></td>
              </tr>
              <tr>
                <td>Notice:</td>
                <td><div class="bordrTextbox"><textarea id="txtnote" name="txtnote"><?=htmlspecialchars($txtnote);?></textarea></div></td>
                <td><font color="#FF0000">*</font></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>
                <font color="#FF0000"><?php echo $error_message;?></font><br><br>
                <input type="button" name="btnback" value="Back" class="button_back_end" onclick="goback()" />
           		<input type="button" name="btnsave" value="Save" class="button_back_end" onclick="saveaddnew()" />
            	
                </td>
                <td>&nbsp;</td>
              </tr>
            </table>
        	
        </form>
		</div>
        
    </div> 

</div>

